package com.dict.mybatis.lab.service;

import com.dict.mybatis.lab.entity.User;
import com.dict.mybatis.lab.entity.User2;
import com.dict.mybatis.lab.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> findUsers() {
        return userMapper.findUsers();
    }

    @Override
    public User findUserById(Long id) {
        return userMapper.findUserById(id);
    }

    @Override
    public Long insertUer(User user) {
        return userMapper.insertUer(user);
    }

    @Override
    public Long insertUUID(User2 user2) {
        return userMapper.insertUUID(user2);
    }
}
